home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-13 / joe014.zip / JOE014.TAZ / JOE014.tar / async.h < prev    next >
C/C++ Source or Header  |  1992-01-23  |  2KB  |  56 lines

  1. /* Terminal interface header file
  2.    Copyright (C) 1991 Joseph H. Allen
  3.  
  4. This file is part of JOE (Joe's Own Editor)
  5.  
  6. JOE is free software; you can redistribute it and/or modify it under the terms
  7. of the GNU General Public License as published by the Free Software
  8. Foundation; either version 1, or (at your option) any later version.  
  9.  
  10. JOE is distributed in the hope that it will be useful, but WITHOUT ANY
  11. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  12. A PARTICULAR PURPOSE.  See the GNU General Public License for more details.  
  13.  
  14. You should have received a copy of the GNU General Public License
  15. along with JOE; see the file COPYING.  If not, write to
  16. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  17.  
  18. int aopen();        /* fflush(stdout) and then set terminal to
  19.                character at a time mode */
  20. int aclose();        /* Flush output and then restore original tty mode */
  21. int aflush();        /* Flush the output and sleep for the amount of time
  22.                the output will need to get to the terminal (I.E.,
  23.                depends on the baud rate).  Then check if there's
  24.                any typeahead and set 'have' if there is */
  25. int anext();        /* Call aflush() and then return next char from
  26.                terminal */
  27. int sigjoe();        /* Set signal handling for JOE */
  28. int signorm();        /* Set signal handling back to default */
  29.  
  30. extern int have;    /* Set if there is typeahead */
  31.  
  32. int eputs();        /* Write string to terminal */
  33. int eputc();        /* Write character to terminal */
  34.             /* If the output buffer gets full, these call
  35.                aflush() */
  36.  
  37. int shell();        /* Shell escape */
  38. int susp();        /* Suspend */
  39.  
  40. int termtype();             /* Determine the following terminal parameters */
  41.  
  42. extern int width;       /* Screen width */
  43. extern int height;      /* Screen height */
  44. extern int scroll;      /* Set=use scrolling regions, Clr=don't use them */
  45. extern int record;
  46. extern unsigned char *take;
  47.         /* String to use as input instead of keyboard */
  48.  
  49. int getsize();        /* Set width and height again with TIOCGSIZE */
  50.  
  51. /* If termtype does nothing, these values defualt to: width=80, height=24,
  52.    scroll=1 (true).
  53.  
  54.    Note that the only terminal type supported is ANSI/VT100
  55.  */
  56.